home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #6
/
Amiga Plus CD - 2004 - No. 06.iso
/
AmigaPlus
/
Begleitmaterial
/
50Tools
/
Grafik
/
PerfectPaint
/
rexx
/
Anim
/
Ghost.rx
< prev
next >
Wrap
Text File
|
2001-10-01
|
880b
|
69 lines
/* arexx Script */
options results
parse ARG Port b
ADDRESS value Port
pp_GetDepth
D=result
IF D<24 then DO
pp_Warn 'This*script*is*only|for*24bits*Picture.'
pp_PermitRefresh
Exit
END
pp_GetWidth
w=result
pp_GetHeight
h=result
pp_CountFrames
count=result
IF count<2 then DO
pp_Warn 'Make*an*Anim*first.'
pp_PermitRefresh
EXIT
END
depth=5
pp_DialogInit 150 60 "*Flash*" 1
pp_Integer 0 70 8 50 16 "Frame#" 1 depth
pp_Dialog
rc=result
IF rc=0 then DO
EXIT
END
pp_GetDialog 0
depth=result
pp_GetCurrentFrame
CF=result
pp_GetCurrentBrush
CB=result
pp_FindEmptyBrush
Brush=result
pp_SetBrush Brush
pp_PickBrush 0 0 w h 1
step=depth
Step_f=(0-100)/Step
do i=CF to CF+depth
pp_GotoFrame i
f=Step_f*(i-(CF+depth))
pp_BrushOpacity f
pp_plot w/2 h/2
end
pp_BrushOpacity 100
pp_FreeBrush
pp_SetBrush CB
EXIT